let obj = {}
class Component{
    constructor(){
        this.data = obj;
    }
}

new Component()

function xxx() {
    with(this){
        console.log(name);
        console.log(age);
    }
}

xxxx.call({})